<%@page contentType="text/html;charset=UTF-8"%>
<%@taglib uri="/WEB-INF/tlds/framework.tld" prefix="framework"%>
<html>
<head>
<jsp:include page="/common/inc/select.jsp" />
</head>
<body>
<framework:tree2 serviceName="framework.DeptService" treeName="组织机构" lazy="true" queryString="1=1 order by t.name"></framework:tree2>
<a href="<%= request.getContextPath()%>/framework/security/Dept.do" id="gotoMenu" target="arightFrame"></a>
</body>
<script>
function selectNode(){
	var node = atree.getSelected();
	if(!node) return;
	if(!node.value) {
		window.gotoMenu.href="<%= request.getContextPath()%>/framework/security/Dept.do";
	} else {
		window.gotoMenu.href="<%= request.getContextPath()%>/framework/security/Dept.do?_$_parentId="+node.value
	}
	window.gotoMenu.click();
}
</script>
</html>
